//
//  User.swift
//  SinaMicroBlog
//
//  Created by wxy on 15/9/7.
//  Copyright © 2015年 wxy. All rights reserved.
//

import UIKit

class User: NSObject {
    
    // 用户id
    var id: Int = 0
    // 友好显示名称
    var name: String?
    // 用户头像地址(中图) 50x50像素
    var profile_image_url: String?
    //
    var verified: Int = 0
    // 会员等级：1-6
    var mbrank: Int = 0
    
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String {
        
        let keys = ["id", "name", "profile_image_url", "verified", "mbrank"]
        
        return dictionaryWithValuesForKeys(keys).description
    }
}
